package com.company;

public class System_currentTimeMillis {
    public static void main(String[] args)
    {
        long start=System.currentTimeMillis();
        for(int i=0;i<100000000;i++)
        {
            int temp=0;
        }
        long end=System.currentTimeMillis();
        long time=end-start;
        System.out.println("程序执行时间"+time+"秒");
    }
}
